#ifndef __FIRMWARES_BURN__H__
#define __FIRMWARES_BURN__H__


#include "stdlib.h"
#include "stdio.h"
#include "string.h"
#include "stdbool.h"
#include "stdarg.h"
#include "stdint.h"





typedef enum {
    Auto_Burn,
    UART_ISP_Burn,
    UART_IAP_Burn,
    JTAG_SWD_Burn,
    UART_Check_CRC,
}burn_method;


typedef struct{
    char name[100];
    uint32_t crc32;
    burn_method burn_mode;
    
}firmwares;


typedef struct{
    char Directory[100];
    char mcu_model[24];
    uint32_t firms_num;
    firmwares firms[3];
    
}firmwares_configuration;







extern firmwares_configuration firmcfg;


void ISP_task_func(void);




#endif

